{template block/header}
<div id="bodywrap">
    <table class="layout">
        <tr>
            <td class="left">
                <div class="mainbody">
                    <!--{if $photos}-->
                    <div class="col titbg">
                        <h1 class="f_left">{lang photo_list}</h1>
                        <h4 class="f_left">{lang total_photo|$total_num}</h4>
                        {$photo_col_menu}
                    </div>
                    <div class="innercol grid">
                        <div class="gallary_wrap">
                            <!--{loop $photos $k $v}-->
                            <div class="gallary_item">
                                <div class="item">
                                    <div class="pic_box">
                                        <table>
                                            <tr>
                                                <td>
                                                    
                                                    <!--{if !$v['photo_priv']}-->
                                                    <a href="{link ctl=photos act=view id=$v['id']}">
                                                        <img src="{$base_path}statics/img/lock.gif" />
                                                    </a>
                                                    <!--{else}-->
                                                        {$v['img_thumb']}
                                                    <!--{/if}-->
                                                    
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="pic_ctl">
                                    </div>
                                    <div class="clear brief">
                                        <span class="f_left"></span>
                                        <span class="f_right gray">{lang in_upload_time}{echo date('Y-m-d',$v['create_time'])}</span>
                                    </div>
                                </div>
                                <div class="info">
                                    <div class="title">
                                    <span class="name">{$v['name']}</span>
                                    </div>
                                    <div class="info_col">
                                        <span class="f_left gray">{lang view_nums|`$v['hits']`} </span>
                                        <span class="f_right gray"><!--{if $v['comments_num']}--><a href="{link ctl=photos act=view id=$v['id']}#comments">{lang comments_num|`$v['comments_num']`}</a><!--{/if}--></span>
                                    </div>
                                </div>
                            </div>
                            <!--{/loop}-->
                        </div>
                        <div class="bot_toolbar">
                            <div class="f_left paginator">
                                {$pagestr}
                            </div>
                            <div class="f_right">
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <!--{else}-->
                        <div class="no_data_info">
                            <div class="pic no_photo_search"></div>
                            <div class="data_msg">
                                <div>{lang no_photo_search_notice}</div >
                                <div class="button"></div>
                            </div>
                            <div class="clear"></div>
                        </div>
                    <!--{/if}-->
                </div>
            </td>
            <td class="right">
                <div class="sidebar">
                    <div class="sidesearch mb20">
                        <h2>{lang search_photos}</h2>
                            <form class="search" action="{link ctl=photos act=search}" method="post">
                                <input type="hidden" name="type" value="all" />
                                <input type="text" class="inputstyle iptw1" name="sname" value="{$search['name']}" />
                                <input type="submit" name="submit" class="ylbtn1 ml5" value="{lang search}" />
                            </form>
                    </div>
                    
                </div>
            </td>
        </tr>
    </table>
</div>

<script type="text/javascript">
$(function(){
    drop_select('.listorder');
    drop_select('.pset');
    drop_select('.viewtype');
});
</script>
{template block/footer}